The yuv2 stream is encoded in a series of four-byte packets. Each packet represents two adjacent pixels on the same scan line. The bytes within each packet are ordered as follows:
y0 is the luminance value for the left pixel; y1 the luminance for the right pixel. u and v are chromatic values that are shared by both pixels. The conversion into RGB space is represented by the following equations:
g = y - .7143 * v - .3437 * u + .5
The r , g , and b values range from 0 to 255.